package com.baosight.risk.mapper.xtzy;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baosight.risk.base.mapper.BaseMapper;
import com.baosight.risk.service.xtzy.entity.XtzyUser;

public interface XtzyUserMapper extends BaseMapper<XtzyUser> {

    XtzyUser selectByName(@Param("userCode") String userCode);

    List<XtzyUser> selectUser(@Param("user") XtzyUser user);

    Integer deleteById(@Param("ids") List<String> ids, @Param("status") String status);

    List<XtzyUser> getRoleByRoleIdAndCompId(@Param("compId") String compId, @Param("roleId") String roleId);

    List<XtzyUser> getUserByCompAndRole(@Param("compId") String compId, @Param("roleId") String roleId);
    
    List<XtzyUser> getUserByOrgAndRole(@Param("busiOrgCode") String busiOrgCode, @Param("roleId") String roleId);

    Integer updateExpireDate();

}